public class Test {
    public static void main(String[] args) {
        int[] array={4,2,1,6};
        BinarySearchTree binarySearchTree=new BinarySearchTree();
        for (int i = 0; i < array.length; i++) {
            binarySearchTree.insert(array[i]);
        }
        System.out.println(binarySearchTree.search(4));
        System.out.println(binarySearchTree.search(45));

        binarySearchTree.remove(2);
        System.out.println("===");
    }
}
